import request from '@/utils/request'
const serviceName = 'Estate'
//  列表
export function queryRooms(data) {
  return request({
    url: serviceName + '/Room/QueryRooms',
    method: 'post',
    data
  })
}
//  详情
export function getRoom(data) {
  return request({
    url: serviceName + '/Room/GetRoom',
    method: 'post',
    data
  })
}
//  新增 修改
export function saveRoom(data) {
  return request({
    url: serviceName + '/Room/SaveRoom',
    method: 'post',
    data
  })
}
//  删除
export function deleteRooms(data) {
  return request({
    url: serviceName + '/Room/DeleteRooms',
    method: 'post',
    data
  })
}

//  导入
export function importRoom(data) {
  return request({
    url: serviceName + '/Room/ImportRoom',
    method: 'post',
    data
  })
}
export default {
  queryRooms,
  getRoom,
  saveRoom,
  deleteRooms,
  importRoom
}
